package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.YWGiftCardOrder;
import com.ecoolex.discount.sales.entity.YWGiftCardOrderExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface YWGiftCardOrderMapper {
    long countByExample(YWGiftCardOrderExample example);

    int deleteByExample(YWGiftCardOrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(YWGiftCardOrder record);

    int insertSelective(@Param("record") YWGiftCardOrder record, @Param("selective") YWGiftCardOrder.Column ... selective);

    YWGiftCardOrder selectOneByExample(YWGiftCardOrderExample example);

    List<YWGiftCardOrder> selectByExample(YWGiftCardOrderExample example);

    YWGiftCardOrder selectByPrimaryKey(Integer id);

    YWGiftCardOrder selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") YWGiftCardOrder record, @Param("example") YWGiftCardOrderExample example, @Param("selective") YWGiftCardOrder.Column ... selective);

    int updateByExample(@Param("record") YWGiftCardOrder record, @Param("example") YWGiftCardOrderExample example);

    int updateByPrimaryKeySelective(@Param("record") YWGiftCardOrder record, @Param("selective") YWGiftCardOrder.Column ... selective);

    int updateByPrimaryKey(YWGiftCardOrder record);

    int batchInsert(@Param("list") List<YWGiftCardOrder> list);

    int batchInsertSelective(@Param("list") List<YWGiftCardOrder> list, @Param("selective") YWGiftCardOrder.Column ... selective);

    int logicalDeleteByExample(@Param("example") YWGiftCardOrderExample example);

    int logicalDeleteByPrimaryKey(Integer id);
}